import { Routes, RouterModule }         from '@angular/router';
import { NgModule }                     from '@angular/core';
import { NotFoundComponent }            from './not-found.component';
import { InternalServerErrorComponent } from './internal-server-error.component';


const routes: Routes = [
    {
        path: 'page-not-found',
        component: NotFoundComponent,
        data: {
            title: '404 not fuond'
        }
    },
    {
        path: 'service-errors',
        component: InternalServerErrorComponent,
        data: {
            title: '500 serverInterval'
        }
    }
];


@NgModule({
    imports: [RouterModule.forChild(routes)],
    exports: [RouterModule]
})
export class ErrorsRoutingModule {}
